package com.cherish.screen.service.impl;

import com.cherish.screen.db.entity.ExceptionLog;
import com.cherish.screen.db.mapper.ExceptionLogMapper;
import com.cherish.screen.service.ExceptionLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Classname ExceptionLogServiceImpl
 * @Date 2020/4/7 14:35
 * @Created by admin
 * @Description TODO
 */
@Service("exceptionLogService")
public class ExceptionLogServiceImpl implements ExceptionLogService {

    @Autowired
    private ExceptionLogMapper logMapper;

    @Override
    public int insert(ExceptionLog record) {
        return logMapper.insert(record);
    }

    @Override
    public ExceptionLog selectByPrimaryKey(Long id) {
        return logMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<ExceptionLog> selectAll() {
        return logMapper.selectAll();
    }
}
